using System.Collections.Generic; 
using System.Text; 
using System;
using NHibernate;
using OASys.Entity;
using NHibernate.Linq;
using Project.Common;
using Project.Dal.Base;
namespace OASys.Dal.SPDal
{
	public class  DalUPPermissionNotice : BaseSPDal
	{	
		private  DalUPPermissionNotice()
		{
			
		}
		public IList<UPPermissionNotice> Invoke(UPPermissionNoticeParameter parameter)
		{
			IQuery query = Session.GetNamedQuery("UP_Permission_Notice");
										query.SetParameter("userid", parameter.userid);
												query.SetParameter("departmentid", parameter.departmentid);
								
						query.SetResultTransformer(new NHibernate.Transform.AliasToBeanResultTransformer(typeof(UPPermissionNotice)));

			IList<UPPermissionNotice> records = query.List<UPPermissionNotice>();
			return records;
					}
	}
	
}
		